Command line 常用指令


Posted by ericcch24 on 2020-06-15

來源:[CMD101]

  • pwd -- 現在位置
  • ls -- 列出我現在位置裡的檔案
  • cd -- 移動位置 cd .. 移到上一層 )
  • man -- 使用手冊
  • touch -- 建立檔案與更改時間(碰一下檔案的意思)
  • rm -- 刪除 (若要刪資料夾 前面 -r
  • mkdir -- 建立資料夾
  • mv -- 移動檔案或改名
  • cp -- 複製檔案
  • vim -- 文字編輯 進去後按 i 才能打字, esc 離開打字模式, :wq 表示存檔後離開
  • grep (findstr) -- grep 某字 檔案 可以找出我要的字
  • wget -- 下載檔案 後面接網址
  • curl -- 送出request 先記著以後用
  • redirection -- 重新導向 > 寫入一個新增的檔案(會直接覆蓋原有的內容), >> 可以接續寫入不會覆蓋掉原有內容
  • echo -- 寫入文字到檔案
  • cat -- 顯示檔案的內容
  • pipe -- | 用來組合指令,用前面指令的輸出來執行 | 後面的指令的輸入,ex:cat 123.txt | grep 3

#Week 1







Related Posts

redis 套件的 Property 'on' does not exist on type 'RedisClientType'

redis 套件的 Property 'on' does not exist on type 'RedisClientType'

Remove Duplicates from Sorted Array

Remove Duplicates from Sorted Array

MTR04_0711

MTR04_0711


Comments